import java.util.Scanner;

public class Text2 {
    public static int Soultion(int m,int n){
        if (m==1 && n>=1 || n==1 && m>=1){
            return m+n;
        }
        return Soultion(m-1,n)+Soultion(m,n-1);
    }

    public static void main(String[] args) {
        Scanner SC = new Scanner(System.in);
        int m = SC.nextInt();
        int n = SC.nextInt();
        System.out.println(Soultion(m,n));
    }
}
